package com.changpay.zywy.mvp.contract

import com.changpay.zywy.base.IModel
import com.changpay.zywy.base.IPresenter
import com.changpay.zywy.base.IView
import com.changpay.zywy.bean.HttpResult
import io.reactivex.Observable

interface RegisterContract {


    interface View : IView {
        fun registerSuccess()
        fun getSuccess(data: Any)
    }

    interface Presenter : IPresenter<View> {

        fun register(map: MutableMap<String, String>)
        fun getCode(phone: String, type: String)
    }


    interface Model : IModel {
        fun register(map: MutableMap<String, String>):Observable<HttpResult<Any>>
        fun getCode(phone: String, type: String) : Observable<HttpResult<Any>>

    }
}